/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package gui.consoleapp;

import domein.Day;
import domein.DomeinController;
import domein.Episode;
import domein.Serie;
import java.util.ArrayList;
import java.util.List;
import persistentie.PersistentieController;

/**
 *
 * @author vuokko
 */
public class ConsoleApp {
    
    public ConsoleApp() {
        System.out.println("SeriesManager started");
        System.out.println("Testing readout from xml file");
        List<Serie> l = DomeinController.getInstance().getSeries();
        System.out.println("Readout done");
        System.out.println( );
        System.out.println("Testing file output");
        for (Serie s : l) {
            System.out.println(s);
        }
        System.out.println("File output done");
        
       /*
        System.out.println("Testing writing to file");
        List<Episode> epi = new ArrayList<>();
        epi.add(new Episode("S01E01", "Another Pilot", true)); 
        Serie se = new Serie("TestSerie", epi, Day.MONDAY);
        
        DomeinController.getInstance().addSerie(se);
        PersistentieController.getInstance().saveAllSeries();
        
        System.out.println("Write test complete, reading out again");
        l = DomeinController.getInstance().getSeries();
                for (Serie s : l) {
            System.out.println(s);
        }
        */
        System.out.println("Program run complete");
    }
    
}
